-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHI decouple] move dropout_impl and cuda_graph_with_memory_pool from fluid to phi #49139
[PHI decouple] move dropout_impl and cuda_graph_with_memory_pool from fluid to phi #49139
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@YuanRisheng 帮忙 Review 一下 |
|
||
if (seed) { | ||
phi::DenseTensor seed_cpu_tensor; | ||
paddle::framework::TensorCopySync( | ||
*seed, platform::CPUPlace(), &seed_cpu_tensor); | ||
phi::Copy(dev_ctx, *seed, phi::CPUPlace(), false, &seed_cpu_tensor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是同步拷贝,对应phi下copy参数应该是true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已处理
@YuanRisheng 可以review了 |
PR types
Others
PR changes
Others
Describe
dropout_impl.cu.h
anddropout_impl_util.h
from fluid to phi.cuda_graph_with_memory_pool.h
from fluid to phi.cuda_graph.h
from fluid to phi.